﻿#ifndef CMDLINECHARTLINECHARTSTRAIGHTLINESELECTCHANGE_H
#define CMDLINECHARTLINECHARTSTRAIGHTLINESELECTCHANGE_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartLineChartStraightLineSelectChange : public CommandManager::CommandBase
    {
        Q_OBJECT

        public:
            CmdLineChartLineChartStraightLineSelectChange();
            ~CmdLineChartLineChartStraightLineSelectChange();

            bool execute() override;
            void undo() override;
            void redo() override;
            void setData(int id, bool selected) { 
                m_id = id; 
                m_selected = selected; 
            }

        private:
            int m_id; 
            bool m_selected; 
    };

} // namespace PostCommand

#endif
